<?php
namespace app\index\controller;

use think\Controller;
use app\index\model\ClassModel;
class ClassController extends Controller
{
	public function select()
	{
		$class = ClassModel::get(15);
		//var_dump($class->students);
		//echo $class->mr_classname;
		foreach ($class->students as $student){
			echo $student->s_name." "
				  .$student->s_birthday." "
				  		.$student->s_address."<br/>";
		}
	}
}